const { defineConfig } = require('@vue/cli-service')
const path = require('path')
function resolve(dir) {
  return path.join(__dirname, dir)
}
module.exports = {
  devServer: {
    host: 'localhost',
    hot: true,
    port: 8081,
    open: true,
    historyApiFallback: true,
    https: false,
    proxy: {
      '/api': {
        target: 'http://139.9.184.218:8080/', // Server
        changeOrigin: true,
        pathRewrite: { '^/api': '' }
      }
    }
  }
}
